﻿@model MyPSDALayer.SiteDB 
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>SiteDB</legend>
        @Html.HiddenFor(model => model.ID)
        <div class="editor-label">
            @Html.LabelFor(model => model.WorkTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WorkTime)
            @Html.ValidationMessageFor(model => model.WorkTime)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Phone)
            @Html.ValidationMessageFor(model => model.Phone)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.QQ)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.QQ)
            @Html.ValidationMessageFor(model => model.QQ)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.IS_Current)
        </div>
        <div class="editor-field">
            @Html.DropdownListYNFor(model => model.IS_Current)
            @Html.ValidationMessageFor(model => model.IS_Current)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.SiteIntro)
        </div>
        <div class="editor-field">
            @Html.UEditorFor(model => model.SiteIntro)
            @Html.ValidationMessageFor(model => model.SiteIntro)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Field_1)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Field_1)
            @Html.ValidationMessageFor(model => model.Field_1)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Field_2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Field_2)
            @Html.ValidationMessageFor(model => model.Field_2)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Field_3)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Field_3)
            @Html.ValidationMessageFor(model => model.Field_3)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Field_4)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Field_4)
            @Html.ValidationMessageFor(model => model.Field_4)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Field_5)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Field_5)
            @Html.ValidationMessageFor(model => model.Field_5)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Field_6)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Field_6)
            @Html.ValidationMessageFor(model => model.Field_6)
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
